package com.crm.Mapper;

import com.crm.entity.Clue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CluesMapper {
    /**
     * 查询最大的id
     */
    @Select("select max(id) from clue")
    Long selectMaxId();
    /**
     * 新建线索
     */
    void insertClue(Clue clue);

    /**
     * 分页查询
     */
    List<Clue> selectCluesByCondition(String beginCreateTime, String endCreateTime);



}
